package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.StrategyTag;
import cn.wolfcode.luowowo.common.query.QueryObject;

import java.util.List;

public interface StrategyTagMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyTag record);

    StrategyTag selectByPrimaryKey(Long id);

    List<StrategyTag> selectAll();

    List<StrategyTag> selectForList(QueryObject qo);

    int updateByPrimaryKey(StrategyTag record);

    //tong通过标签的名字进行查询
    StrategyTag selectByName(String tagName);

    String selectByDetailId(Long detailId);

    //根据目的地的id查询标签的操作
    List<StrategyTag> selectByDestId(Long destId);
}